package com.ysy.controller;


import com.ysy.entity.UserSearchReq;
import com.ysy.entity.UserSearchResponse;
import com.ysy.persimmons.common.response.PageResponse;
import com.ysy.service.UserSearchService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class UserSearchController {


    @Resource
    private UserSearchService userSearchService;


    @PostMapping("/user/info")
    public PageResponse<UserSearchResponse> getUserInfos(UserSearchReq userSearchReq) {
      return userSearchService.getUserInfos(userSearchReq);
    }





}
